<?php

	require_once( '../system/smarty.inc' );

	require_once( '../system/Class_ERROR.php' );
	require_once( '../system/login.inc.php' );
	require_once( '../system/aoki_m.php' );
	require_once( '../system/Class_PWD.php' );
	
	Class_PWD::valid_auth(AOKI_AUTH_INS_SHOP, $login['staff_auth']);
	
	if( isset( $err_mes ) ) $smarty->assign('err', $err_mes);
	$smarty->assign('auth', $arr_auth );
	
	
	$isG4  = FALSE;
	if   ($login['staff_auth'] == 'G-4') {
		$isG4 = TRUE;
		
	}
	$smarty->assign('isG4', $isG4 );
	
	
	$isG5 = FALSE;
	if   ($login['staff_auth'] == 'G-5') {
		$isG5 = TRUE;
	}
	$smarty->assign('isG5', $isG5 );
	if   ( ($login['staff_auth'] == 'G-0') || ($login['staff_auth'] == 'G-1')  ) {
		$sorts =array(1 => "AOKI管理者",2 => "折込会社",3 => "DNP");
		$forms["sort"] = 1;
		$smarty->assign('sorts', $sorts );
		$smarty->assign('forms', $forms );
	}

	
	$smarty->assign('menu',   $smarty->fetch('menu.html') );
	$smarty->assign('logout', $smarty->fetch('logout.html') );
	$smarty->assign('footer', $smarty->fetch('footer.html') );
	
	if (isset($_GET["pro"]) && $_GET["pro"] == "sucess") {
		$smarty->display('minsshop_import_end.html');
	} else {
		$smarty->assign('import', $smarty->fetch('import.html') );
		$smarty->display('minsshop_import.html');		
	}
	

?>